package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * TODO
 *
 * @Author lyh
 * @Date 2024/11/8 10:18
 */




@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from t_user where name like concat('%',#{name},'%')")
    List<User> findByName(String name);
}
